package zhuhai
{
	import flash.text.TextField;
	import flash.filesystem.File;
	public class Datas
	{
		/**

		  config.json:
		  {
		  "leftkey":37,
		  "rightkey":39,
		  "clickkey":40,
		  "doubleClickTimeOut":200
		  }
		 */
		private static var _jsonObject:Object;
		public static function get jsonObject():Object
		{
			if(_jsonObject==null)
			{
				_jsonObject = SwfLoader.readJsonFile("config.json");
			}
			if(_jsonObject==null)
			{
				_jsonObject = { leftkey:37, rightkey:39, clickkey:40, doubleClickTimeOut:200 };
			}
			return _jsonObject;
		}

		public function Datas()
		{
		}

		public static function get leftkey():int
		{
			return jsonObject.leftkey;
		}
		public static function get rightkey():int
		{
			return jsonObject.rightkey;
		}
		public static function get clickkey():int
		{
			return jsonObject.clickkey;
		}
		public static function get doubleClickTimeOut():int
		{
			return jsonObject.doubleClickTimeOut;
		}

	}
}
